#include<stdio.h>
#include<string.h>
int main()
{
    char p1[100];
    char p2[100];
    int count = 0;
    scanf("%s",p1);
    while(1)
    {
        scanf("%s",p2);
        if(strcmp(p1,p2)==0)
        {
            printf("Correct password.Come in please!");
            break;
        }
        else
        {
            count++;
            printf("Wrong password[%d].\n",count);
            if(count==3)
            {
                printf("Wrong three times,Goodbye!");
                break;
            }
        }
    }
    return 0;
}